package simple.app;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		ApplicationContext appCtx = new ClassPathXmlApplicationContext("META-INF/spring.xml");
		BeanFactory factory = (BeanFactory) appCtx;
		Test bean = (Test) factory.getBean("test");
		bean.run();
	}
}
